package jaoso.framework.domain;

import org.apache.commons.lang.builder.ToStringBuilder;

import java.io.Serializable;

import java.util.Set;

/**
 * @author Hibernate CodeGenerator
 */
public class Right implements Serializable
{
    /** persistent field */
    private Set groups;

    /** persistent field */
    private String box;

    /** persistent field */
    private String desc;

    /** identifier field */
    private String id;

    /** persistent field */
    private String url;

    /**
     * full constructor
     */
    public Right(String box, String desc, String url, Set groups)
    {
        this.box = box;
        this.desc = desc;
        this.groups = groups;
    }

    /**
     * default constructor
     */
    public Right()
    {
    }

    /**
     * DOCUMENT ME!
     * 
     * @param box
     *            DOCUMENT ME!
     */
    public void setBox(String box)
    {
        this.box = box;
    }

    /**
     * DOCUMENT ME!
     * 
     * @return DOCUMENT ME!
     */
    public String getBox()
    {
        return this.box;
    }

    /**
     * DOCUMENT ME!
     * 
     * @param desc
     *            DOCUMENT ME!
     */
    public void setDesc(String desc)
    {
        this.desc = desc;
    }

    /**
     * DOCUMENT ME!
     * 
     * @return DOCUMENT ME!
     */
    public String getDesc()
    {
        return this.desc;
    }

    /**
     * DOCUMENT ME!
     * 
     * @param groups
     *            DOCUMENT ME!
     */
    public void setGroups(Set groups)
    {
        this.groups = groups;
    }

    /**
     * DOCUMENT ME!
     * 
     * @return DOCUMENT ME!
     */
    public Set getGroups()
    {
        return this.groups;
    }

    /**
     * DOCUMENT ME!
     * 
     * @param id
     *            DOCUMENT ME!
     */
    public void setId(String id)
    {
        this.id = id;
    }

    /**
     * DOCUMENT ME!
     * 
     * @return DOCUMENT ME!
     */
    public String getId()
    {
        return this.id;
    }

    /**
     * @param string
     */
    public void setUrl(String string)
    {
        url = string;
    }

    /**
     * @return
     */
    public String getUrl()
    {
        return url;
    }

    /**
     * DOCUMENT ME!
     * 
     * @return DOCUMENT ME!
     */
    public String toString()
    {
        return new ToStringBuilder(this).append("id", getId()).toString();
    }
}